
from selenium import webdriver
import time
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
web = webdriver.Chrome
web.get("file:///J:/%E8%BD%AF%E4%BB%B6%E6%B5%8B%E8%AF%95/%E8%BD%AF%E4%BB%B6%E6%B5%8B%E8%AF%95%E5%B7%A5%E5%85%B7/%E5%8E%8B%E7%BC%A9%E5%8C%85/UI%E8%87%AA%E5%8A%A8%E5%8C%96/UI%E8%87%AA%E5%8A%A8%E5%8C%96%E5%B7%A5%E5%85%B7/web%E8%87%AA%E5%8A%A8%E5%8C%96%E5%B7%A5%E5%85%B7%E9%9B%86%E5%90%88/pagetest/drag.html")
web.maximize_window()
time.sleep(3)
web.refresh()
time.sleep(2)
source = web.find_element(By.ID,"div1")
target = web.find_element(By.ID,"div2")
action = ActionChains(web)
action.drag_and_drop(source,target)
action.perform()

time.sleep(3)
print(web.title)
print(web.current_url)
print(source.size)
web.quit()